package com.example.demo.entity.vo;

import com.example.demo.entity.User;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author chen huilong
 * @data 2022/10/7
 */
@Data
public class GroupOutput {

    @ApiModelProperty(value = "学号")
    public String userNumber;

    @ApiModelProperty(value = "用户名")
    public String name;

    @ApiModelProperty(value = "手机号")
    public String phonenumber;

    public void of(User selectOne) {
        this.userNumber = selectOne.getUserNumber().toString();
        this.name = selectOne.getUserName();
        this.phonenumber = selectOne.getPhonenumber();
    }
}
